-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[WEBRTCR] Send command to DUT via websocket in CI (#41486) #41829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1.5-sve-branch
Are you sure you want to change the base?
[WEBRTCR] Send command to DUT via websocket in CI (#41486) #41829
Conversation
* [WEBRTCR] Send command to DUT via websocket in CI * Update src/python_testing/TC_WEBRTCR_2_2.py Co-authored-by: Copilot <[email protected]> * Update src/python_testing/TC_WEBRTCR_2_6.py Co-authored-by: Copilot <[email protected]> * Update src/python_testing/TC_WEBRTCR_2_7.py Co-authored-by: Copilot <[email protected]> * Restyled by autopep8 * Restyled by isort * Address review comments --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Restyled.io <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a WEBRTCRTestBase class to centralize sending commands to the DUT via WebSockets in CI, which is a great improvement for code reuse and maintainability. The individual test cases are updated to leverage this new base class, enabling CI for these WebRTC tests. My review has identified a recurring critical issue across multiple test files where a blocking wait() call is used within an async function. This will block the asyncio event loop and can cause tests to hang. I have provided comments and suggestions in each affected file to resolve this by using run_in_executor.
|
PR #41829: Size comparison from ab13593 to b413026 Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok, however @yufengwangca the bot has some comments ... could you confirm if that operation is blocking or not?
[WEBRTCR] Send command to DUT via websocket in CI
Update src/python_testing/TC_WEBRTCR_2_2.py
Update src/python_testing/TC_WEBRTCR_2_6.py
Update src/python_testing/TC_WEBRTCR_2_7.py
Restyled by autopep8
Restyled by isort
Address review comments
Summary
Cherry pick [WEBRTCR] Send command to DUT via websocket in CI (#41486)
Related issues
N/A
Testing
Validate by CI